package com.difsonapps.android.joinme;

import android.app.Application;

public class GlobalVariables{

//	
//	private  ViewMapHistoryFragment viewMapHistoryFragment =  new ViewMapHistoryFragment();
//	
//	public ViewMapHistoryFragment getViewMapHistoryFragment(){
//		return viewMapHistoryFragment;
//	}
//
//}

	   private static GlobalVariables instance;
	 
	   // Global variable
	   private static  ViewMapHistoryFragment viewMapHistoryFragment ;
	   
	   private static String id_User;
	   
	 
	   // Restrict the constructor from being instantiated
	   private GlobalVariables(){
		   viewMapHistoryFragment =  new ViewMapHistoryFragment();
	   }
	  
	   public static ViewMapHistoryFragment getViewMapHistoryFragment(){
		   return viewMapHistoryFragment;
	   }

	   public static void setUserId(String id){
		   id_User = id;
	   }
	   
	   public static String getUserId(){
		   return id_User;
	   }
	 
	   public static synchronized GlobalVariables getInstance(){
	     if(instance==null){
	       instance=new GlobalVariables();
	     }
	     return instance;
	   }
	}